@extends("h5.layouts.main")
@section('content')
<?php

use App\admin\Service\OA;
use App\Models\MoneyBilModel; 
$out_trade_no=$_GET['out_trade_no']??'';
if($out_trade_no==''){
    \App\Jobs\Fun::showmsg("参数错误");
}
$MoneyBilModel = MoneyBilModel::where('out_trade_no', $out_trade_no)->first();

?>
<div class="divbodyH5 moneyDiv">
    <div id="settingTitle">
        <b>充值</b>
        <a class="back" href="/h5/my/money/index"> <img src="/h5/images/return.png" id="settingRtn"></a>
    </div>
          
    <div class="myTable"> 

  
              <div class="chongzhidiv">
                    <span class="label">充值金额:</span>
                    <div class="chongzhiinput">
                        <span class="renminbi">¥</span> 
                        <span class="  value"><?= $MoneyBilModel->money  ?></span>
                    </div>
                    
                    <span class="label">现有余额:</span>
                    <div class="chongzhiinput">
                        <span class="renminbi">¥</span> 
                        <span class="  value"><?= OA::$user->getMoney()  ?></span>
                    </div>
                    
                    <span class="label">充值状态:</span>
                    <div class="chongzhiinput"> 
                        <h3 class="  value"><?php
                    if($MoneyBilModel->status== MoneyBilModel::status_Success){
                        echo "充值成功";
                    }else{
                        echo "请刷新后查看";
                    }
                    
                    
                    ?></h3>
                    </div>
                    
             
                 
                    
                </div> 

    </div>



</div>
<script>
new MC.Money.chongzhi();

</script>

@stop